<?php if ($email != '') { ?>
    <h2 style="color: #2cb2bc; margin-bottom: 10px;">We just emailed you</h2>
    <p>Look for our email sent to <b><?php echo $email; ?></b>. Click the link in the email to reset password.</p>
    <p><b style="font-size: 12pt">Note:</b> If you don't see our email in the inbox. Check the junk or spam folder in your mail, please.</p>
    <?php
} else {
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'form_request_password',
        'enableAjaxValidation' => false,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
    <div class="form_textfield">
        <?php echo $form->labelEx($model, 'email'); ?>
        <?php echo $form->textField($model, 'email'); ?>
        <?php echo $form->error($model, 'email'); ?>
    </div>
    <div>
        <input type="submit" class="buttonSubmit" name="send-email" value="Email new password">
    </div>
    <?php $this->endWidget(); ?>
<?php } ?>